package com.zcxy.fast.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zcxy.fast.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * 平台-字典表
 *
 * @author zcc
 * @email 860474958@qq.com
 * @date 2020-12-18 15:05:58
 */
@Data
@TableName(value = "sys_dict", autoResultMap = true)
@ApiModel(value = "SysDict", description = "平台-字典表")
public class SysDict extends BaseEntity {

    @TableId(type = IdType.UUID)
    @Length(max = 32, message = "id 超出最大长度：32")
    @ApiModelProperty(value = " 主键", required = false)
    private String id;

    @Length(max = 512, message = "remark 超出最大长度：512")
    @ApiModelProperty(value = " 备注", required = false)
    private String remark;

    @Length(max = 32, message = "code 超出最大长度：32")
    @ApiModelProperty(value = " 代码", required = false)
    private String code;

    @Length(max = 100, message = "name 超出最大长度：100")
    @ApiModelProperty(value = " 名称", required = false)
    private String name;

    @Length(max = 1, message = "type 超出最大长度：1")
    @ApiModelProperty(value = " 1.常规2.sql", required = false)
    private String type;

    @Length(max = 1, message = "sql 超出最大长度：1")
    @ApiModelProperty(value = " SQL详情", required = false)
    private String sql;

    @Length(max = 1, message = "0禁用1启用")
    @ApiModelProperty(value = " 0禁用1启用", required = false)
    private String status;


    @Length(max = 1, message = "1.系统预设不可删除2.自行添加")
    @ApiModelProperty(value = "1.系统预设不可删除2.自行添加", required = false)
    private String sysType;

}
